<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>任务管理</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <jsp:include page="_Chair.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-12">
            <ul class="list-inline">
                <li>任务审核</li>
            </ul>

            <hr>

            <table class="table">
                <thead>
                <tr>
                    <th>活动编号</th>
                    <th>活动姓名</th>
                    <th>活动授予</th>
                    <th>状态</th>
                    <th>任务文件</th>
                    <th>回馈文件</th>
                    <th>操作</th>
                </tr>
                </thead>

                <tbody>
                <c:forEach items="${missionList }" var="mission">
                    <c:url value="/chair/fileDownload" var="downUrl">
                        <c:param name="fileName" value="${mission.missionName }"></c:param>
                        <c:param name="filePath" value="${mission.missionPath }"></c:param>
                    </c:url>

                    <c:url value="/chair/fileDownload" var="downUrlf">
                        <c:param name="fileName" value="${mission.missionName }"></c:param>
                        <c:param name="filePath" value="${mission.finishPath }"></c:param>
                    </c:url>
                    <tr>
                        <td>${mission.id}</td>
                        <td>${mission.missionName}</td>
                        <td>${mission.memberNo}</td>
                        <td>${mission.statusName }</td>
                        <td><a href="${downUrl}">下载 </a></td>
                        <td><a href="${downUrlf}">下载 </a></td>
                        <td>
                            <a class="btn btn-info btn-xs" href="<c:url value="/chair/approved?id=${mission.id}"/>">通过</a>
                            <a class="btn btn-info btn-xs" href="<c:url value="/chair/notApproved?id=${mission.id}"/>">不通过</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>


        </div>
    </div>

</div>
</body>
</html>